package com.tracy.life.constant;


/**
 * ***********************************************************
 * author: tracy
 * time: 2016/7/19 22:12
 * name:
 * overview:
 * usage: 接口的URL
 * *************************************************************
 */
public class UrlString {
    public static final String URL_BANNER = "http://api.mglife.me/v2/banners";
    public static final String URL_SECONDBANNER = "http://api.mglife.me/v2/secondary_banners";
    public static final String URL_POSTS = "http://api.mglife.me/v2/posts?limit=20&offset=0";
    //搜索界面 攻略的URl
    public static final String URL_DISCOVERY_STRATEGY="http://api.mglife.me/v2/collections?limit=20&offset=0";
    //专区的Url
    public static final String URL_SPECIAL="http://api.mglife.me/v2/channel_groups/all";

    //商品fragment中的---------------------------------------------
    public static final String URL_GOODS = " http://api.mglife.me/v2/item_categories/tree";
    public static final String URL_GOODS_ITEM = " http://api.mglife.me/v2/item_subcategories/%d/items?limit=20&offset=0";
    //------------------------------------------------------------

    public static String getDescriptionUrl(int id){
        return "http://api.mglife.me/v2/items_v2/"+id;


    }
}
